<!--文章页面-->
<template>
  <div class="main">
    <TitleComponent/>
    <div class="content">
      <div class="nav">
        <el-breadcrumb separator="/">
          <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
          <el-breadcrumb-item>文章</el-breadcrumb-item>
        </el-breadcrumb>
      </div>
      <ArticleSon :classList="classList"/>
    </div>
  </div>
</template>

<script>
import TitleComponent from "@/views/Index/components/TitleComponent";
import ArticleSon from "@/views/Index/components/ArticleSon";
import {getArticleList} from "@/api/index-api";

export default {
  name: "ArticlePage",
  data() {
    return {
      classList: ''
    }
  },
  components: {
    TitleComponent,
    ArticleSon
  },
  created() {
    getArticleList().then(res=>{
      this.classList = res.rows
    })
  }
}
</script>

<style scoped lang="less">
.main {
  background-color: white;
}

.content {
  width: 1200px;
  margin: 0 auto;

  .nav {
    margin: 20px 0;
  }
}
</style>